#include <stdio.h>


typedef int UART_Handle;

#define USART_MAX_NUM  (2)

//初始化串口
int uartInit(UART_Handle handle, int baudrate);

//发送数据
int uartSendData(UART_Handle handle, char *data, int len);

//获取接收缓冲区数据长度
int getRecvDataLen(UART_Handle handle);

//接收数据
int uartRecvData(UART_Handle handle, char *data, int len);

//关闭串口
int uartDeinit(UART_Handle handle);
